<mat-form-field appearance="fill">
  <mat-label>Different locale</mat-label>
  <input matInput [matDatepicker]="dp">
  <mat-datepicker-toggle matSuffix [for]="dp"></mat-datepicker-toggle>
  <mat-datepicker #dp></mat-datepicker>
</mat-form-field>

<button mat-button (click)="french()">Dynamically switch to French</button>
